package com.lemon.android.http;

/**
 * Created by Cooliean on 16/1/19.
 * 在Lemon包中反编译过来的。
 */
public class Field {
    public static final int TYPE_INT = 0;
    public static final int TYPE_STRING = 1;
    public static final int TYPE_DATE = 2;
    public static final int TYPE_DATETIME = 3;
    public static final int TYPE_DOUBLE = 4;
    public static final int TYPE_CLOB = 5;
    public static final int TYPE_TEXT = 6;
    public static final int TYPE_BOOLEAN = 7;
    public static final int TYPE_UNKNOWN = 8;
    public static final int TYPE_LONG = 9;
    public static final int TYPE_EXPRESSION = 99;
    public static final int TYPE_ASYNC = 98;
    private String sName;
    private int nType;
    private int nLength;
    private int nLength2;
    private boolean bAllowNull;
    private String sValue;
    private boolean bAutoIncrement;
    private boolean bDeltaAdd;
    private String sPreFix;

    public Field(String sName, int nType) {
        this(sName, nType, 10, (String)null);
    }

    public Field(String sName, int nType, int nLength) {
        this(sName, nType, nLength, 3, true, (String)null, false, (String)null);
    }

    public Field(String sName, int nType, String sValue) {
        this(sName, nType, 10, sValue);
    }

    public Field(String sName, int nType, int nLength, String sValue) {
        this(sName, nType, nLength, sValue, false);
    }

    public Field(String sName, int nType, boolean bAutoIncrement) {
        this(sName, nType, 10, (String)null, bAutoIncrement);
    }

    public Field(String sName, boolean bAutoIncrement) {
        this(sName, 0, 10, (String)null, bAutoIncrement);
    }

    public Field(String sName, boolean bAutoIncrement, String sPreFix) {
        this(sName, 1, 30, (String)null, bAutoIncrement, sPreFix);
    }

    public Field(String sName, int nType, int nLength, String sValue, boolean bAutoIncrement) {
        this(sName, nType, nLength, 3, true, sValue, bAutoIncrement, (String)null);
    }

    public Field(String sName, int nType, String sValue, boolean bAutoIncrement, String sPreFix) {
        this(sName, nType, 10, 3, true, sValue, bAutoIncrement, sPreFix);
    }

    public Field(String sName, int nType, int nLength, String sValue, boolean bAutoIncrement, String sPreFix) {
        this(sName, nType, nLength, 3, true, sValue, bAutoIncrement, sPreFix);
    }

    public Field(String sName, int nType, int nLength, int nLength2, boolean bAllowNull, String sValue, boolean bAutoIncrement) {
        this(sName, nType, nLength, nLength2, bAllowNull, sValue, bAutoIncrement, "");
    }

    public Field(String sName, int nType, int nLength, int nLength2, boolean bAllowNull, String sValue, boolean bAutoIncrement, String sPreFix) {
        this.sName = "";
        this.nType = 0;
        this.nLength = 0;
        this.nLength2 = 0;
        this.bAllowNull = true;
        this.sValue = "";
        this.sName = sName;
        this.nType = nType;
        this.nLength = nLength;
        this.nLength2 = nLength2;
        this.bAllowNull = bAllowNull;
        this.sValue = sValue;
        this.bAutoIncrement = bAutoIncrement;
        this.sPreFix = sPreFix;
        this.bDeltaAdd = false;
    }

    public Field(String sName, String sValue, boolean bDeltaAdd) {
        this(sName, 0, sValue);
        this.bDeltaAdd = bDeltaAdd;
    }

    public String getName() {
        return this.sName;
    }

    public String getValue() {
        return this.sValue;
    }

    public void setValue(String sValue) {
        this.sValue = sValue;
    }

    public int getType() {
        return this.nType;
    }

    public int getLength() {
        return this.nLength;
    }

    public int getLength2() {
        return this.nLength2;
    }

    public boolean getDeltaAdd() {
        return this.bDeltaAdd;
    }

    public void setDeltaAdd(boolean bDeltaAdd) {
        this.bDeltaAdd = bDeltaAdd;
    }

    public boolean getAutoIncrement() {
        return this.bAutoIncrement;
    }

    public void setAutoIncrement(boolean bAutoIncrement) {
        this.bAutoIncrement = bAutoIncrement;
    }

    public String getPreFix() {
        return this.sPreFix;
    }

    public void setPreFix(String sPreFix) {
        this.sPreFix = sPreFix;
    }

    public boolean getAllowNull() {
        return this.bAllowNull;
    }
}
